package com.smartEdu.commons;

import redis.clients.jedis.Jedis;

public class RedisTool {
	public static String findUserNameById(String id){
    	Jedis jedis=null;
    	String res=null;
    	try {
    		jedis=ClassStatic.redis.getResource();
//    		res=jedis.hget(Tag_Tips.USER, id);
    		res=jedis.hget(Tag_Tips.U+id, Tag_Tips.NAME);
    		
		}
    	catch (Exception e) {
			LogCvt.error("获取User失败",e);
			return null;
		}
    	finally {
    		ClassStatic.redis.returnResource(jedis);
		}
    	return res;
	}
	
}
